!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t){!function(){"use strict";try{if(void 0===e)var e={};if(e.defaults={trackingHost:"tt.onthe.io",projectId:"12595",projectSignature:"125dbbfb04eabbb0c55483edd8ccc7b1",projectCodeId:"hyjvwIwHYhow",projectCodeVersion:"6",projectUniquesBySuperdomain:"0",projectVisitsBySuperdomain:"0",projectVisitsDuration:"15",projectVideosWithoutMarkup:"1",holdingHash:"",holdingId:"",excludeReferrersByDomain:""},void 0===e)e={};if(e.doubleLoadingDetector=function(e,t){var i={init:function(){var i,n=e.getElementsByTagName("script"),r=0;for(i=0;i>>0).toString(16)).substr(-8):o>>>0},n.getStorageStatus=function(){try{return e.sessionStorage.setItem("test","1"),e.sessionStorage.removeItem("test"),!0}catch(e){return!1}},n.setPreviousURI=function(t){if(this.getStorageStatus()){var i=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};e.sessionStorage.setItem("__io_nav_state",JSON.stringify({current:t,previous:i.current}))}},n.getPreviousURI=function(){if(this.getStorageStatus()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};return t.previous&&t.previous!==t.current?t.previous:void 0}},n.getPreviousPageTitle=function(){if(this.getStorageStatus()){var i,n,r=t.title;if(i=e.sessionStorage.getItem("__io_previous_page_title"),n=e.sessionStorage.getItem("__io_previous_page_title_bak"),i===r){if(n)return n}else if(e.sessionStorage.setItem("__io_previous_page_title",r),i)return e.sessionStorage.setItem("__io_previous_page_title_bak",i),i}},n.getSearchParam=function(t,i){var n=(i?this.parseURL(i).search:e.location.search).match("[?&]"+t+"=([^(&?)]*)");return n?n[n.length-1]:""},n.getCookieValue=function(e){var i=t.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return i?this.decodeURIrecursively(i[i.length-1]):""},n.setCookie=function(e,i,n,r,o,a){var s=new Date;s.setYear(s.getFullYear()+1),s=s.toUTCString(),n||(n=s),r||(r="/"),i&&(i=encodeURIComponent(i));var c=e+"="+(i||"")+"; expires="+n+"; path="+r+(o?"; domain="+o:"")+(a?"; secure":"");t.cookie=c},n.deleteCookie=function(e,t,i){this.setCookie(e,null,"Thu, 01 Jan 1970 00:00:01 GMT",t,i)},n.getDepth=function(){var t=new Date((new Date).getTime()+9e5).toUTCString(),i=this.hashFnv32a(e.location.pathname),n=this.getCookieValue("__io_d");if(!n||2!==n.split("_").length)return this.setCookie("__io_d","1_"+i,t),1;var r=n.split("_")[1],o=e.parseInt(n.split("_")[0],10);if(i==r)return o||1;var a=(o||0)+1;return this.setCookie("__io_d",a+"_"+i,t),a},n.getUserId=function(){var e=this.getCookieValue("__io");return e||(e=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"_"+Date.now()),this.setCookie("__io",e),e},n.getReferrer=function(){var r=function(){var r=t.referrer;r||(r=n.getCookieValue("__io_r"));var o=n.getSearchParam("utm_source");"mail"==o?r="mail":o&&""==r&&(r=o);var a=n.getSearchParam("io_utm_social");if(a&&(r=a),location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.com")>-1||location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.ru")>-1||"zen.yandex.ru"===r)return"yandex_zen";if("?f"==location.search)return"facebook_group";var s=["liqpay","privatbank","PayParts","portmone","paymaster"];for(var c in s)if(r.indexOf(s[c])>-1)return"direct";var l=r.indexOf(location.hostname)>0&&r.indexOf(location.hostname)<10;if(new RegExp("^(www.)?"+e.location.hostname.replace(/^www\./,"")).test(n.parseURL(r).hostname)&&(l=!0),""!==i.excludeReferrersByDomain&&new RegExp(i.excludeReferrersByDomain+"$").test(n.parseURL(r).hostname)&&(l=!0),l||n.setCookie("__io_r",r,null,null,e.location.hostname.replace(/^www\./,"")),l){var d=n.getCookieValue("__io_r");if(!d)return"direct";r=d}return-1!==(r=r.replace("www.","")).indexOf("/")&&(r=r.split("/")[2]),-1!==(r=-1===(r=r.replace(/\.$/,"")).indexOf("plus.google.")?r.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):r.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google")).indexOf("plus.url.google")&&(r="google.plus"),-1!==(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook")).replace(/facebook/i,"facebook")).replace(/fb\.me/,"facebook")).replace(/^fb$/,"facebook")).replace(/(m\.)?vk\.com/,"vk.com")).replace(/vkontakte\.ru/,"vk.com")).replace(/^vk$/,"vk.com")).replace(/([a-z_]+).vk.com/,"vk.com")).replace(/^t\.co/,"twitter")).replace(/clck\.yandex\.ru/,"yandex.ru")).replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru")).replace(/m\.ok\.ru/,"ok.ru")).replace(/l\.facebook/,"facebook")).replace(/lfacebook/,"facebook")).replace(/mobifacebook/,"facebook")).replace(/wefacebook/,"facebook")).replace(/twitter.com/,"twitter")).replace(/com.google/,"google")).replace(/Google/,"google")).replace(/([a-z_]+).yahoo.com/,"yahoo.com")).replace(/([a-z_]+).bing.com/,"bing.com")).replace(/([a-z_]+).baidu.com/,"baidu.com")).replace(/m\.news\.yandex/,"news.yandex")).replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net")).replace(/(.*)\.directadvert\.ru/,"directadvert.ru")).indexOf("news")&&-1!==r.indexOf("yandex")&&(r="news.yandex.ru"),r=(r=(r=r.replace(/duckduckgo\.com/i,"duckduckgo")).replace(/ecosia\.org/i,"ecosia")).replace(/[:,]/g,"_")}();return this.getCookieValue("__io_first_source")||this.setCookie("__io_first_source",r,null,null,e.location.hostname.replace(/^www\./,"")),r},n.getDeviceName=function(){var t=e.navigator.userAgent||"undefined",i="desktop",n=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(t),r=/Tablet|PlayBook|iPad/i.test(t)||/Android/i.test(t)&&!/Mobile/i.test(t)&&!/Opera Mini/i.test(t),o=/Android/i.test(t),a=/iPhone|iPad|iPod/i.test(t);return n&&(r?(i="tablet",i+=o?" (Android)":a?" (iOS)":" (Other)"):(i="smart",i+=o?" (Android)":a?" (iOS)":" (Other)")),i},n.getBrowserNameAndVersion=function(){var t,i,n,r=e.navigator.userAgent;switch(!0){case-1!==(t=r.indexOf("OPR/")):i=r.substring(t+4);break;case-1!==(t=r.indexOf("Opera"))&&-1!==(t=r.indexOf("Version")):i=r.substring(t+8);break;case-1!==(t=r.indexOf("Opera")):i=r.substring(t+6);break;case-1!==(t=r.indexOf("MSIE")):i=r.substring(t+5);break;case-1!==(t=r.indexOf("Chrome")):i=r.substring(t+7);break;case-1!==(t=r.indexOf("Safari"))&&-1!==(t=r.indexOf("Version")):i=r.substring(t+8);break;case-1!==(t=r.indexOf("Safari")):i=r.substring(t+7);break;case-1!=(t=r.indexOf("Firefox")):i=r.substring(t+8);break;case(t=r.lastIndexOf(" ")+1)<(t=r.lastIndexOf("/")):i=r.substring(t+1)}return i=i.split(";")[0].split(" ")[0],n=(n=e.parseInt(i||e.navigator.appVersion,10))||"(unknown version)",this.getBrowserName()+" "+n},n.getUserLifeTime=function(){var e=t.cookie.match(/__io=([^;]+)/);return e?(e=e[1].split("_")[1],(e=Math.round((+Date.now()-e)/864e5))<0&&(e=0),0==e?e="0":e<7?e+="d":e=e<30?Math.round(e/7)+"w":Math.round(e/30)+"m",e):"0"},n.getUserLifeTimeNumber=function(){var e=t.cookie.match(/__io_lv=([^;]+)/);return e?(e=e[1],e=Math.round((+Date.now()-e)/864e5)):"0"},n.getUserType=function(){var e="";if(-1==t.cookie.indexOf("__io=")){(n=new Date).setYear(n.getFullYear()+1);var i=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1);t.cookie="__io="+i+"_"+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}else{(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io="+(void 0!==this.getCookieValue("__io")?this.getCookieValue("__io")+"; expires="+n.toUTCString()+"; path=/":"")}if(-1==t.cookie.indexOf("__io_lv="))e="new",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())e="new";else{var n,r=1*this.getUserLifeTimeNumber();e=r>30?"new":r>7?"returned":"constant",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}return e},n.getBrowserName=function(){var i,n="",r=!!e.opr&&!!e.opr.addons||!!e.opera||-1!==e.navigator.userAgent.indexOf(" OPR/"),o="undefined"!=typeof InstallTrigger,a=/constructor/i.test(e.HTMLElement)||"[object SafariRemoteNotification]"===(!e.safari||void 0!==e.safari&&e.safari.pushNotification).toString(),s=!!t.documentMode,c=[{name:"Opera",isCurrent:r},{name:"Firefox",isCurrent:o},{name:"Safari",isCurrent:a},{name:"IE",isCurrent:s},{name:"Edge",isCurrent:!s&&!!e.StyleMedia},{name:"Chrome",isCurrent:!!e.chrome&&!!e.chrome.webstore},{name:"Opera Mini",isCurrent:"[object OperaMini]"===Object.prototype.toString.call(e.operamini)}];for(i=0;i0?0:i<-1?-1:i;return n=100-Math.abs(Math.floor(100*n)),Math.abs(n)},sendMetric:function(e){n.bindOnPageDescriptorAppearance(this.url,function(t){i.sendMetric(e,t.getSlices())})},tryToTrackReadabilityAndUnbind25:function(){this.getScrollPercent()<=25||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind25),this.sendMetric("read_top"))},tryToTrackReadabilityAndUnbind50:function(){this.getScrollPercent()<=50||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind50),this.sendMetric("read_middle"))},tryToTrackReadabilityAndUnbind75:function(){this.getScrollPercent()<=75||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind75),this.sendMetric("read_bottom"))},tryToTrackReadabilityAndUnbind95:function(){this.getScrollPercent()<=95||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind95),this.sendMetric("read_finished"))},bindEvents:function(){this.boundHandles={},this.boundHandles.tryToTrackReadabilityAndUnbind25=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind25.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind50=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind50.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind75=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind75.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind95=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind95.bind(this))},init:function(e){this.element=e,this.url=e.getAttribute("data-io-article-url"),this.bindEvents()}},o={trackExistingArticles:function(){var e,n,o=t.querySelectorAll("[data-io-article-url]");for(e=0;e6,i=e.getDeepPropertySafe(jwplayer(),["config","image"]);if(t){this.setSlicesTime=function(){this.slices.reference_time=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","duration"])||0,this.slices.time_int=e.getDeepPropertySafe(jwplayer().getConfig(),["position"])||0};var n=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","mediaid"])||e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","sources","0","file"]);n&&(this.slices.video_id=n),i=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","images","0"])||e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","image"])||e.getDeepPropertySafe(jwplayer().getConfig(),["image"]);var r=e.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","title"]);r&&(this.slices.title=r)}i&&(this.slices.image=i.split("//").pop())}},c.setSlicesTime=function(){this.slices.reference_time=this.element.readyState?this.element.duration:0,this.slices.time_int=this.element.readyState?this.element.currentTime:0},c.findAndSetSliceURL=function(){var e=(this.element.getElementsByTagName("source")[0]||{}).src||this.element.src;e&&(0===e.indexOf("blob:")&&(e=e.substring(5)),this.setSliceVideoId(e))},c.setImage=function(){var e=this.element.poster;e&&(this.slices.image=e.split("://").pop())},c.setTitle=function(){var e=this.element.getAttribute("data-io-video-title");e&&(this.slices.title=e)},c.init=function(e){this.instantiate(e),this.slices.type="html5",this.findAndSetSliceURL(),this.setSlicesTime(),this.setImage(),this.setTitle(),this.setSlicesIfJwPlayer(),this.trackView(),this.bindEvents()};var l=e.createObject(s);l.trackExistingVideos=function(t){this.usedElements||(this.usedElements=[]);var i,n,r,o=t||this.containerElement.querySelectorAll(this.elementSelector),a=[];for(n=0;n=0&&t.item(i)!==this;);return i>-1};i;){if(n.call(i,t))return i;i=i.parentElement}return null}function r(r){var o=n(r,"[data-vr-zone]"),a=(n(r,"[data-section-name]"),n(r,"[data-vr-title]")),s=a?(a.getAttribute("data-vr-title")||"").replace(",","").trim():"";if(-1!==s.indexOf("????"))return!1;if(s||(s=r.textContent.replace(/\s+/g," ").trim().replace(",","").replace(":","").slice(0,60).trim()+"..."),"..."===s)return!1;var c={block_pos:r?(r.getAttribute("data-vr-contentbox")||"").trim():"",block_zon:o?(o.getAttribute("data-vr-zone")||"").trim():"",block_url:r.pathname,block_domain:r.hostname,block_global_pos:r.getAttribute("data-vr-global-position").trim(),block_title:s,url:e.location.pathname,page:t.title,domain:e.location.hostname,device:i.getDeviceName()};return{slices_object:c,zone:c.block_zon}}var o=t.querySelectorAll('[data-vr-zone] [data-vr-contentbox]:not([data-vr-contentbox=""]) a:not([href="#"]):not([href="/"]):not(.io-ignore), [data-vr-zone] a[data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore), a[data-vr-zone][data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore)');if(o){!function(e){var i;if(null===t.querySelector("[data-vr-global-position]"))for(i=0;i=0&&r<=e.innerHeight},waitForSubscriptionBlockView:function(e){var i=document.querySelector(this.defaultBlockSelector);if(!i)return!1;n.isScrolledIntoView(i)&&!this.alreadyViewed&&(this.alreadyViewed=!0,t.sendMetric("subscription_button_view",e.getSlices()))},init:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){t.addEventListenerSafe(document,"scroll",function(){n.waitForSubscriptionBlockView(e)});var i=document.querySelectorAll(n.defaultButtonsSelector);if(0==i.length)return!1;for(var r=0;r